package com.ruoyi.common.core.domain.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @version :
 * @program: easyBuy
 * @description: 用户注册model
 * @author: 周爱鸿
 * @create: 2020-09-02 15:00
 **/
@ApiModel("用户model")
public class UserModel {

	@Data
	@ApiModel("用户注册model")
	public static class Logon{
		@ApiModelProperty("手机号")
		@NotBlank(message = "手机号不能为空")
		private String phonenumber ;

		@ApiModelProperty("密码")
		@NotBlank(message = "密码不能为空")
		private String password ;

		@ApiModelProperty("验证码")
		@NotBlank(message = "验证码不能为空")
		private String code ;

		@ApiModelProperty("邀请人id")
		private Long invitees ;
	}

	@Data
	@ApiModel("忘记密码手机号验证")
	public static class UpdatePassword {

		@ApiModelProperty("手机号")
		@NotBlank(message = "手机号不能为空")
		private String phonenumber ;


		@ApiModelProperty("密码")
		@NotBlank(message = "密码不能为空")
		private String password ;
	}
}


